package br.mikhas.db.serdes;

/**
 * Defines a simple interface to simplify the creation of outputs to be used on
 * serialization process
 * 
 * @author Mikhail Domanoski
 * 
 */
public interface SerializationOutput {

	/**
	 * Writes serialized data on the target output
	 * 
	 * @param bytesToWrite
	 *            the bytes to write on the output
	 * @return The number of bytes written
	 */
	int write(byte[] bytesToWrite);
}
